﻿$(function(){ 

$('#station').combogrid({
				rownumbers:true,pagination:true, sortName:'name',sortOrder:'asc',
				panelWidth:450,
				value:'006',
				idField:'id',
				textField:'name',
				url:'station.json',
				columns:[[
					{field:'city',title:'地域城市',width:60},
					{field:'name',title:'网点名',width:100}
				]],
				filter:function(q,row){  if(row.name.toUpperCase().indexOf(q.toUpperCase())>=0) return true;   },
				  toolbar:[{text:'清空',iconCls:'icon-no',	handler:function(){alert(1);}				 
					},'-',{	text:'确定',	iconCls:'icon-ok',handler:function(){ alert(2); }}]
			});		   
})
